package com.learn.springboot.exception;

import java.util.StringJoiner;

/**
 * @author wangxing
 * @version 2020/8/3 11:25 Administrator
 */
public class RetrunException {
    private Integer code;
    private String msg;
    private String url;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", RetrunException.class.getSimpleName() + "[", "]")
                .add("code=" + code)
                .add("msg='" + msg + "'")
                .add("url='" + url + "'")
                .toString();
    }
}
